﻿using System.Collections.Generic;
using System.Threading.Tasks;
using BCEntity.TMS.MallInterface.MallOrder;

namespace BCData.TMS.MallInterface.MallOrder
{
    public interface IMallOrderData
    {
        Task<bool> DeleteAsync(long mallOrderId);
        Task<MallOrderEntity> GetEntityAsync(long mallOrderId);
        Task<MallOrderEntity> GetEntityAsync(string mallOrderNo);
        Task<(IEnumerable<MallOrderEntity>, int)> GetListAsync(int pageIndex, int pageSize);
        Task<MallOrderEntity> InsertAsync(MallOrderEntity entity);
        Task<MallOrderEntity> UpdateAsync(MallOrderEntity entity);
    }
}